Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@napi-rs/woff-build

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@napi-rs/woff-build

[![CI](https://github.com/Brooooooklyn/woff-build/actions/workflows/CI.yml/badge.svg)](https://github.com/Brooooooklyn/woff-build/actions/workflows/CI.yml) [![install size](https://packagephobia.com/badge?p=@napi-rs/woff-build)](https://packagephobia.com/

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.3K
decreased by-4.88%
Maintainers
2
Weekly downloads
 
Created
Source

@napi-rs/woff-build

CI install size Downloads

🚀 Help me to become a full-time open-source developer by sponsoring me on Github

Usage

import { join } from 'path'
import { fileURLToPath } from 'url'

import { convertTTFToWOFF2 } from '@napi-rs/woff-build'

const fixture = await readFile(join(fileURLToPath(import.meta.url), '..', './iconsfont.ttf'))

convertTTFToWOFF2(fixture)

Example

node example/index.mjs

✨ Done in 2460.2297090291977 ms
TTF font length  :  1654412
WOFF2 font length:  729564

Then open the example HTML in your browser, you can test the converted WOFF2 fonts.

FAQs

Package last updated on 15 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc